﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAO;
namespace BUS
{
    public class BUS_LopHoc
    {
        DAO_LOPHOC KHOAHOC = new DAO_LOPHOC();
        public List<LOPHOC> LayThongTinKhoaHoc()
        {
            return KHOAHOC.LayThongTinKhoaHoc();
        }
        public List<LOAILOP> LayThongTinLoaiLop()
        {
            return KHOAHOC.LayThongTinLoaiLop();
        }
        public List<LSTHAYDOI> LayThongTinThayDoi()
        {
            return KHOAHOC.LayThongTinThayDoi();
        }
        public bool ThemLopMoi(LOAILOP lop)
        {
            if (KHOAHOC.ThemLopMoi(lop) == true)
            {
                return true;
            }
            return false;
        }
        public bool CapNhatLop(LOAILOP lop)
        {
            if (KHOAHOC.CapNhatLop(lop) == true)
            {
                return true;
            }
            return false;
        }
        public bool LuuVet(LSTHAYDOI thaydoi)
        {
            if(KHOAHOC.LuuVet(thaydoi) == true)
            {
                return true;
            }
            else
            {
                return false;
            }
        }
    }
}
